package com.tju.resource.model;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.Date;
import lombok.Data;

/**
 * 
 * @TableName tb_rm_store
 */
@TableName(value ="tb_rm_store")
@Data
public class TbRmStore implements Serializable {
    /**
     * 原料入库记录id
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 原料id
     */
    private Long rmId;
    /**
     * 原料对象
     */
    @TableField(exist = false)
    private TbRawMatl tbRawMatl;
    /**
     * 原料入库数量
     */
    private Integer rmIn;
    /**
     * 入库重量
     */
    private Double rmWeight;
    /**
     * 采购金额
     */
    private Double rmMoney;
    /**
     * 原料入库人
     */
    private String createBy;

    /**
     * 原料入库时间
     */
    private Date createTime;

    /**
     * 来源
     */
    private String rmSrc;

    /**
     * 备注
     */
    private String remark;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

    public TbRmStore() {
    }

    public TbRmStore(Long rmId, Integer rmIn, String createBy, String rmSrc, String remark,Double rmMoney,Double rmWeight) {
        this.rmId = rmId;
        this.rmIn = rmIn;
        this.createBy = createBy;
        this.rmSrc = rmSrc;
        this.remark = remark;
        this.rmMoney=rmMoney;
        this.rmWeight=rmWeight;
    }
}